package com.demo.spring.aop底层演示.demo;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

// Test类在org.springframework.aop.framework.autoproxy里，为了可以调用受保护的方法
@Aspect
public class Aspect1 {

	@Before("execution(* foo())")
	public void before() {
		System.out.println("aspect1 before ...");
	}
	
	@After("execution(* foo())")
	public void after() {
		System.out.println("aspect1 after ...");
	}
	
}
